﻿using UnityEngine;
using System.Collections;

public class EnvironmentElement : Actor
{
	public bool m_LowestDrawPriority = false;
	public Collider2D m_Size;

	private Vector3 m_NewPosition;

	protected override void Awake ()
	{
		base.Awake ();

		if(!m_LowestDrawPriority)
		{
			m_NewPosition = aTransform.position;
			m_NewPosition.z = m_Size.transform.position.y;
			aTransform.position = m_NewPosition;
		}
	}
}
